import { NgModule } from '@angular/core';
import { CommonModule, DatePipe } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { sharedModule } from '../../sharedModule/shared.module';
import { DemoNgZorroAntdModule } from '../../NG-ZORRO/ng-zorro-antd.module';
import { NzIconModule } from 'ng-zorro-antd/icon';
import { IconDefinition } from '@ant-design/icons-angular';
import { AlertFill } from '@ant-design/icons-angular/icons';
const icons: IconDefinition[] = [AlertFill];

import { OrderComponent } from './order/order.component';
import { HireDeviceRoutingModule } from './hireDevice-routing.module';
import { CommodityComponent } from './commodity/commodity.component';
import { CommodityEditComponent } from './commodity/commodity-edit/commodity-edit.component';
import { OrderDetailComponent } from './order/order-detail/order-detail.component';
import { HotSearchComponent } from './commodity/hot-search/hot-search.component';
import { RentPlanClassComponent } from './rent-class-manage/rent-plan-class/rent-plan-class.component';

@NgModule({
  declarations: [
    OrderComponent,
    CommodityComponent,
    CommodityEditComponent,
    OrderDetailComponent,
    HotSearchComponent,
    RentPlanClassComponent
  ],

  imports: [
    sharedModule,
    NzIconModule.forRoot(icons),
    ReactiveFormsModule,
    FormsModule,
    DemoNgZorroAntdModule,
    CommonModule,
    RouterModule,
    HireDeviceRoutingModule,
  ],

  providers: [DatePipe]
})

export class HireDeviceModule {}
